import com.practice2.exercise.User;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest {
    @Test
    public void main() {
        ApplicationContext context = new ClassPathXmlApplicationContext("user.xml");
        User user1 = (User) context.getBean("user1");
        User user2 = (User) context.getBean("user2");

        user1.show();
        user2.show();


    }
}
